// RootNavigation.js

import * as React from 'react';

export const navigationRef = React.createRef();

export function navigate(name, params) {
  navigationRef.current?.navigate(name, params);
}
export function getCurrentRoute() {
  return navigationRef.current;
}
export function pop() {
  navigationRef.current && navigationRef.current?.goBack();
}
